﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Arc.DairyMan.DairyMan.Common;

namespace Arc.DairyMan.DairyMan.Model
{
    public class Sabhasad : AbsModel
    {
        public int SabhasadId { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
        public bool Gender { get; set; }
        public MilkType MilkType { get; set; }
        public bool IsMember { get; set; }
        public DateTime RegistrationDate { get; set; }
        public string Address { get; set; }
        public string BankNo { get; set; }
        public int ContactNo { get; set; }
        public bool IsActive { get; set; }

        public Sabhasad()
        {
            FriendlyName = "Sabhasad";
            SetDefaultValues();
        }

        public override void SetDefaultValues()
        {
            base.SetDefaultValues();
            TransactionMode = TransactionModes.Insert;
            Code = string.Empty;
            Name = Address = BankNo = string.Empty;
            IsMember = false;
            ContactNo = 0;
            IsActive = true;
            MilkType = MilkType.Cow;
            RegistrationDate = DateTime.Now;
        }
    }
}
